package com.humh.library.model;


import java.time.LocalDate;

// 预约记录类
public class ReservationRecord {
  private Reader reader;
  private Book book;
  private LocalDate reservationDate;

  public ReservationRecord(Reader reader, Book book) {
    this.reader = reader;
    this.book = book;
    this.reservationDate = LocalDate.now();
  }

  // Getters and Setters
  public Reader getUser() {
    return reader;
  }

  public void setUser(Reader reader) {
    this.reader = reader;
  }

  public Book getBook() {
    return book;
  }

  public void setBook(Book book) {
    this.book = book;
  }

  public LocalDate getReservationDate() {
    return reservationDate;
  }

  public void setReservationDate(LocalDate reservationDate) {
    this.reservationDate = reservationDate;
  }
}